package com.example.demo.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "t_news")
public class News {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "news_title")
    private String newsTitle;

    @TableField(value = "news_detail")
    private String newsDetail;

    @TableField(value = "news_create_time")
    private Date newsCreateTime;

    @TableField(value = "news_author")
    private String newsAuthor;

    @TableField(value = "news_view_count")
    private Integer newsViewCount;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "news_image")
    private String newsImage;

}
